package top.lv666.graduation_design_serve.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;
import top.lv666.graduation_design_serve.pojo.Attention;
import top.lv666.graduation_design_serve.pojo.ReplyMessage;
import top.lv666.graduation_design_serve.pojo.UserInfo;

import java.util.List;
import java.util.Map;

@Mapper
@Repository
public interface UserInfoMapper {
    void createUserInfo(Map<String, Object> map);

    UserInfo queryLoginUserById(String uid);

    int ModifyUserInfoById(Map<String, Object> map);

    List<UserInfo> queryHotUserInfo(int page, int limit);

    /**
     * @apiNote 关注某个用户
     */
    void createAttentionById(Map<String, Object> map);

    /**
     * @apiNote 那些人关注了我
     */
    List<Attention> selectMyFans(Map<String, Object> map);

    /**
     * @apiNote 那些人关注了我
     */
    List<Attention> selectMyFocus(Map<String, Object> map);

}
